<?php
session_start();
      if (isset($_SESSION['k_username'])) {
$charset = isset($charset) ? $charset : 'UTF-8';
$htmldirection= isset($htmldirection) ? $htmldirection : 'ltr';
header('Content-Type: text/html; charset='.$charset);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>">
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Intranet Gotica</title>
<link rel="shortcut icon" href="favicon.ico" />  
</head>
<body style="padding:0px;margin:0px;" dir="<?php echo $htmldirection; ?>" onblur="document.search_form.reset();">

<form name="search_form" type="post" target="main1" method="buscadorsocio.php" >
<table id="headerTable">
<tr style="text-align:right;width:15%"><td style="width:15%"><? echo "Logeado como ".$_SESSION['k_username']; ?></td>
<td><input type="text" name="query" value="Buscar..." onfocus="javascript:this.value='';" onblur="javascript:document.search_form.reset();" /><img src="'imagenes/viewmag.png" style="border:0px;margin-left:10px;margin-right:3px;" align="absmiddle" /></td>
<td><a href="logout.php" target="_parent" ><img src="'imagenes/logout.png" style="border:0px;margin-right:3px;" align="absmiddle" /></a></td>


</tr>
</table>

</body>
</html>
